package com.ie.service.admin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ie.common.http.ResponseResult;
import com.ie.entity.CartEntity;
import com.ie.entity.GoodsEntity;

import java.util.Map;
import java.util.List;

public interface GoodsService extends IService<GoodsEntity> {
    ResponseResult<Map<String, Object>> getGoods(GoodsEntity goodsEntity);
    ResponseResult<Map<String, Object>> addGoods(GoodsEntity goodsEntity);
    ResponseResult<Map<String, Object>> deleteGoods(GoodsEntity goodsEntity);
    ResponseResult<Map<String, Object>> updateGoods(GoodsEntity goodsEntity);
    ResponseResult<List<GoodsEntity>> getAdvGoods();
    ResponseResult<GoodsEntity> getGoodsById(GoodsEntity goodsEntity);
    ResponseResult<List<GoodsEntity>> getGoodsIndex(GoodsEntity goodsEntity);

    //和BUser有关的业务
    /*
    1. cart
    2. focus
    */
    ResponseResult<List<Map<String, Object>>> myCartGoods(CartEntity cartEntity);
    ResponseResult<Map<String, Object>> iPageMyFocusGoods(GoodsEntity goodsEntity);
}
